package dao;

/**
 *
 * @author Alexander
 */
public class FactoryDAOFactory {

    private static FactoryDAOFactory instance;

    private FactoryDAOFactory() {
    }

    public JDBCDaoFactory getJDBCDaofactory() {
        return JDBCDaoFactory.getInstance();
    }

    public JPADaoFactory getJPADaoFactory() {
        return JPADaoFactory.getInstance();
    }

    public static synchronized FactoryDAOFactory getInstance() {
        if (instance == null) {
            instance = new FactoryDAOFactory();
        }
        return instance;
    }
}
